﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace com.huigo.Framework.BLL
{
    public class Log
    {
        public static void Write(LogType logType, string text)
        {
            Model.MsLog log = new Model.MsLog();
            log.LogContent = text;
            log.LogIp = com.loto.Common.Utils.GetIP();
            log.LogType = logType.ToString();
            SqlServerDal.MsLog.Insert(log, null);
        }
    }

    public enum LogType
    {
        NOR, ERR
    };
}
